package CtrLayer;
import ModelLayer.CustomerDiscount;
import ModelLayer.PickupDiscount;

/**
 * Write a description of class DiscountCtr here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class DiscountCtr
{
    private static CustomerDiscount cInstance = CustomerDiscount.getInstance();
    private static PickupDiscount pInstance = PickupDiscount.getInstance();
    
    public DiscountCtr()
    {

    }
    
    public void addCustomerDiscount(String type, double customerDiscount)
    {
        cInstance.addDiscount(type, customerDiscount);
    }
    
    public void addPickupDiscount(double pickupDiscount)
    {
        pInstance.setPickupDiscount(pickupDiscount);
    }
    
    public double getCustomerDiscount(String type)
    {
        return cInstance.getDiscount(type);
    }
    
    public double getPickupDiscount(String check)
    {
        return pInstance.getDiscount(check);
    }


    public boolean removeCDiscount(String type)
    {
        return cInstance.removeDiscount(type);
    }
}
